Solving A Tricky Integral Using The Beta And Gamma Functions